﻿using ModelLibrary;
using System;
using System.Windows.Forms;

namespace IMS
{
    public delegate void MenuHadle(object menu);
    public partial class FmMenu : Form
    {
        public event MenuHadle MenuCliked;
        public FmMenu()
        {
            InitializeComponent();
            this.TopLevel = false;
        }
        public FmMenu(UserInfo userInfo)
        {
            InitializeComponent();
            this.TopLevel = false;
        }

        private void button_Click(object sender, EventArgs e)
        {
            MainMenus mainMenus = new MainMenus();
            //mainMenus.Name = "itemInfo";
            //mainMenus.Text = "品种资料";
            MenuCliked(mainMenus);
        }
    }
}
